package org.sucri.floxs.ext.form;

import org.sucri.floxs.utils.Json_Util;

/**
 * Created by IntelliJ IDEA.
 * User: Wen Yu
 * Date: Aug 19, 2007
 * Time: 4:56:05 PM
 * To change this template use File | Settings | File Templates.
 */
public class CheckboxField extends FormField
{
  public CheckboxField(String label, String name)
  {
    super(label, name, 0);
  }
  @Override
  /**
   var employee_active = new Ext.form.Checkbox({
         fieldLabel: 'Active',
         name: 'active'
     });
   */
  public String construct()
  {
    return Json_Util.newJs("Ext.form.Checkbox", Json_Util.toJSONString(mConfig));
  }  
}
